import myHome from "@/components/myHome";
import pcRecommend from "@/views/pcRecommend";
import pcFollow from "@/views/pcFollow";
import pcHot from "@/views/pcHot";
import pcVideo from "@/views/pcVideo";
import questionWaiting from "@/views/questionWaiting";
import educationLearning from "@/views/educationLearning";
import pcVip from "@/views/pcVip";
import pcExplore from "@/views/pcExplore";
import pcCreator from "@/views/pcCreator";
import pcWrite from "@/views/pcWrite";
import uploadVideo from "@/views/uploadVideo";

//个人主页
import pcProfile from "@/views/pcProfile";
import profileDynamic from "@/components/profile/profileDynamic";
import profileAnswers from "@/components/profile/profileAnswers";
import profileVideo from "@/components/profile/profileVideo";
import profileAsk from "@/components/profile/profileAsk";
import profileArticle from "@/components/profile/profileArticle";
import profilecolumn from "@/components/profile/profilecolumn";
import profileIdea from "@/components/profile/profileIdea";
import profileCollection from "@/components/profile/profileCollection";
import profileFollowing from "@/components/profile/profileFollowing";

import articleDetail from "@/views/articleDetail"
import pcMessages from "@/views/pcMessages"
import questionDetail from "@/views/questionDetail"
import login from "@/views/login"

const routes=[
    {
        path:'',
        component:myHome,
        children:[
            {
                path:'',
                component:pcRecommend
            },
            {
                path: 'follow',
                component: pcFollow
            },
            {
                path:'hot',
                component: pcHot
            },
            {
                path: 'video',
                component: pcVideo
            },
            {
                path: 'question/waiting',
                component: questionWaiting
            },
            {
                path:'articleDetail',
                component:articleDetail
            }
        ]
    },
    {
        path: '/education/learning',
        component: educationLearning
    },
    {
        path: '/vip',
        component: pcVip
    },
    {
        path: '/explore',
        component: pcExplore,
        meta:{
            notShowHeader:true
        }
    },
    {
        path: '/creator',
        component: pcCreator
    },
    {
        path: '/write',
        component: pcWrite
    },
    {
        path: '/uploadVideo',
        component: uploadVideo
    },
    {
        path: '/profile',
        component: pcProfile,
        children: [
            {
                path: '',
                component: profileDynamic
            },
            {
                path: 'answer',
                component: profileAnswers
            },
            {
                path: 'video',
                component: profileVideo
            },
            {
                path: 'ask',
                component: profileAsk
            },
            {
                path: 'article',
                component: profileArticle
            },
            {
                path: 'column',
                component: profilecolumn
            },
            {
                path:'idea',
                component: profileIdea
            },
            {
                path: 'collection',
                component: profileCollection
            },
            {
                path: 'following',
                component: profileFollowing
            }
        ]
    },
    {
        path:'/messages',
        component:pcMessages
    },
    {
        path:'/questionDetail',
        component:questionDetail
    },
    {
        path:'/login',
        component:login
    }
]

export default routes